package com.qys.livesMall.shop.modal.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @menu ShopOrderPaymentRate
 * @date 2023/08/14 17:46
 */
@Data
public class ShopOrderPaymentRate {

    @Schema(description = "平台盈利比例")
    private BigDecimal platformRate;

    @Schema(description = "主播盈利比例")
    private BigDecimal anchorRate;

    @Schema(description = "上级盈利比例")
    private BigDecimal superiorRate;

    @Schema(description = "店铺盈利比例")
    private BigDecimal shopRate;

    /**
     * 店铺盈利点
     */
    private BigDecimal incomeRate;

    public BigDecimal getPlatformRate() {
        return platformRate!=null?platformRate:new BigDecimal("0");
    }
}

